package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.dto.request.ScoreRuleAddDto;
import com.huaxiafinance.management.dto.request.ScoreRuleDto;
import com.huaxiafinance.management.model.ScoreTriggerRule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScoreTriggerRuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ScoreTriggerRule record);

    int insertSelective(ScoreTriggerRule record);

    ScoreTriggerRule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ScoreTriggerRule record);

    int updateByPrimaryKey(ScoreTriggerRule record);

    List<ScoreTriggerRule> queryScoreRules(ScoreRuleDto dto);

    int countScoreRules(ScoreRuleDto dto);

    ScoreTriggerRule selectById(ScoreRuleDto dto);

    ScoreTriggerRule selectByRuleId(ScoreRuleDto dto);

    ScoreTriggerRule selectNumber();

    int insertByScoreRuleAddDto(ScoreRuleAddDto dto);

    ScoreTriggerRule selectByTriggerNumberStr(@Param("triggerNumberStr")String triggerNumberStr);

    int updateById(@Param("id")Integer id);

    int updateScoreTriggerRule(ScoreTriggerRule record);
}